import { createApp } from 'vue'
import { createPinia } from 'pinia'
import moment from 'moment'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'


const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')
app.config.globalProperties.$filters = {
    timeFormat(value: string, formatString: string) {
        formatString = formatString || 'YYYY-MM-DD';
        return moment(value).format(formatString);
    }
}
